-- GENERATED SPELL FOR [Gimorak] --


function spell0_30167(pUnit, Event) --@Gnaw Bone,n/a--
pUnit:FullCastSpellOnTarget(50046,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30167', 693, 1)
end

function spell1_30167(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30167', 15000, 1)
end

function spell2_30167(pUnit, Event) --@Jump Attack,n/a--
pUnit:FullCastSpellOnTarget(54487,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30167', 670, 1)
end

function Sorts_30167(pUnit, Event)
local choix_sorts_30167 = math.random(0, 2)
if choix_sorts_30167 == 0 then
pUnit:RegisterEvent('spell0_30167', 1, 1)
end
if choix_sorts_30167 == 1 then
pUnit:RegisterEvent('spell1_30167', 1, 1)
end
if choix_sorts_30167 == 2 then
pUnit:RegisterEvent('spell2_30167', 1, 1)
end
end

function mob30167_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30167', math.random(1500, 3000), 1)
end

function mob30167_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30167_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30167_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30167, 1, 'mob30167_Action')
RegisterUnitEvent(30167, 2, 'mob30167_Leave')
RegisterUnitEvent(30167, 3, 'mob30167_Kill')
RegisterUnitEvent(30167, 4, 'mob30167_Die')
